﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="macfp.aspx.cs" Inherits="HYSoft.Web.macfp" %>
<%@ Register Src="~/Controls/menu.ascx" TagName="uc2" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="CSS/mainstyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc2:uc2 ID="head" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
        <script type="text/javascript">
            function addFile() {
                var div = document.createElement("div");
                var f = document.createElement("input");
                f.setAttribute("type", "file")
                f.setAttribute("name", "File")
                f.setAttribute("size", "50")
                f.setAttribute("width", "300")
                div.appendChild(f)
                var d = document.createElement("input");
                d.setAttribute("type", "button")
                d.setAttribute("onclick", "deteFile(this)");
                d.setAttribute("value", "移除")
                div.appendChild(d)
                document.getElementById("_container").appendChild(div);
            }

            function deteFile(o) {
                while (o.tagName != "DIV") o = o.parentNode;
                o.parentNode.removeChild(o);
            }
        </script>
        <div class="main">
            <div class="tables">
                <div class="toplogo">
                    <div>
                        <img src="Images/top_2.png" width="10%" style="float: left;" />
                        <img src="Images/top.PNG" width="80%" style="float: left;" />
                        <img src="Images/top_2.png" width="10%" style="float: left;" />
                    </div>
                    <div style="position: relative; height: 10px; top: -70px; margin: 0px 0px 0px 25%;">
                        <strong style="font-size: 20px;">MAC值分配</strong>
                    </div>
                    <table align="center" style="width: 350px">
                        <tr>
                            <td colspan="5">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" valign="middle" class="style21" colspan="2">
                                <strong>未分配mac值：</strong><br />
                                <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                                   <%-- <asp:ListItem Value="66" Selected="True">位移计</asp:ListItem>
                                    <asp:ListItem Value="88">拉线传感器</asp:ListItem>
                                    <asp:ListItem Value="99">摄像头</asp:ListItem>
                                    <asp:ListItem Value="55">基站</asp:ListItem>--%>
                                </asp:DropDownList>
                            </td>
                            <td width="39" align="center">
                                &nbsp;
                            </td>
                            <td colspan="2" align="center" valign="middle" class="style42">
                                <strong>已审批单位：</strong><br />
                                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="5" class="style41" colspan="2">
                                <asp:ListBox ID="lstAll" runat="server" Width="200px" Height="150px" AutoPostBack="True"
                                    OnSelectedIndexChanged="lstAll_SelectedIndexChanged"></asp:ListBox>
                            </td>
                            <td align="center">
                                <asp:Button ID="btnAddAll" runat="server" Text="&gt;&gt;" OnClick="btnAddAll_Click" />
                            </td>
                            <td rowspan="5" class="style42" colspan="2">
                                <asp:ListBox ID="lstSelected" runat="server" Style="margin-left: 0px" Width="200px"
                                    Height="150px" AutoPostBack="True" OnSelectedIndexChanged="lstSelected_SelectedIndexChanged"
                                    OnPreRender="lstSelected_PreRender"></asp:ListBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="btAddOne" runat="server" Text=" > " OnClick="btAddOne_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="btnDelOne" runat="server" Text=" < " OnClick="btnDelOne_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="btnDelAll" runat="server" Text="&lt;&lt;" OnClick="btnDelAll_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="Button4" runat="server" Text="删除" OnClick="Button4_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="5">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" class="style42">
                                mac值
                            </td>
                            <td align="center" class="style42">
                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            </td>
                            <td align="center" class="style42">
                                <asp:Button ID="Button3" runat="server" Text="添加" OnClick="Button3_Click" />
                            </td>
                            <td align="center" class="style42">
                                <asp:Button ID="Button1" runat="server" Text="更新" OnClick="Button1_Click" />
                            </td>
                            <td align="center" class="style42">
                                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="取消" />
                            </td>
                        </tr>
                        <%--<tr>备注：灰显mac为单位用户已分配给传感器节点，需先联系单位用户删除对应传感器节点释放mac，然后才能回收此mac！</tr>--%>
                    </table>
                </div>
                 <div style=" height:358px; width:100%;"></div>
            </div>
           
        </div>
</asp:Content>
